package TriangleArea;

public class TriAngle {
    private int base=2;
    private int height=2;

    public TriAngle(int base, int height) {
        this.base = base;
        this.height = height;
    }

    public TriAngle() {
    }

    public int getBase() {
        return base;
    }

    public void setBase(int base) {
        this.base = base;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int calculate(int base, int height) {
        return this.base*this.height/2;
    }
}
